Skip to content

Add NPM proxy support#3

Merged
psvmcc merged 4 commits intopsvmcc:mainfrom
greeddj:main
Jan 5, 2026
Merged

Add NPM proxy support#3
psvmcc merged 4 commits intopsvmcc:mainfrom
greeddj:main

Conversation

@greeddj
Copy link
Contributor

@greeddj greeddj commented Jan 5, 2026

Hello,

This PR adds support for using hub as an NPM proxy for actual client APIs.

You can use it as a registry URL:

npm config set registry http://localhost:6587/npm/npmjs

Or as a scoped registry:

npm config set @my-scope:registry http://localhost:6587/npm/npmjs

Alternatively, you can add it to your .npmrc file:

registry=http://localhost:6587/npm/npmjs

Additionally, this PR includes:

  • Added the modernize linter to .golangci.yml
  • Refactored code to use any instead of interface{} in accordance with the modernize linter
  • Improved handling of the X-Cache-Status header
  • Logging of the X-Cache-Status header for improved request visibility.

@psvmcc psvmcc merged commit dbd1212 into psvmcc:main Jan 5, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants